﻿using BoriPeter.FatSecret.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FatSecret.Messages
{
    /// <summary>
    /// Returns the recorded weights for a user for the month specified. 
    /// Use this call to display a user's weight chart or log of weight changes for a nominated month.
    /// </summary>
    public class WeightsGetMonth : FatSecretMessageBase<WeightsGetMonthModel>
    {
        private const string METHOD_VALUE = "weights.get_month";
        private const string DATE = "date";

        public WeightsGetMonth(DateTime _date)
        {
            AddRequestParameter(METHOD, METHOD_VALUE);
            AddRequestParameter(DATE, _date);
        }

        public WeightsGetMonth()
        {
            AddRequestParameter(METHOD, METHOD_VALUE);
        }
    }
}
